import request from '@/utils/request'
// 加入购物车
export function addCart(data) {
    return request({
      url: '/api/v1/shop_carts',
      method: 'post',
      data
    })
}
// 获取用户购物车数据
export function reqCartListAPI(data) {
  return request({
    url: "/api/v1/shop_carts",
    method: "get",
    params: { data },
  });
}
// 删除购物车信息
export function delShop(data) {
  return request({
    url: '/api/v1/shop_carts/'+data,
    method: 'delete',
  })
}
// 删除多个购车车
export function delAllShop(data) {
  return request({
    url: '/api/v1/shop_carts/delmany',
    method: 'post',
    data
  })
}